package hibernate.modelConverter;

import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.convert.FacesConverter;

@FacesConverter("DateConverter")
public class DateConverter implements Converter {
	@Override
	public Object getAsObject(FacesContext fc, UIComponent uic, String value) {
		System.out.println("date converter 1");
		System.out.println("value1 : "+value);
		return value;
	}
	
	@Override
	public String getAsString(FacesContext fc, UIComponent uic, Object value) {
		System.out.println("date converter 2");
		System.out.println("value2 : "+value.toString());
		return value.toString();
	}
}
